package com.jin.lazytool.handler;

import java.io.Serializable;
import java.time.LocalDateTime;

public abstract class ILoopHandler implements Serializable {

    protected long time;

    abstract public Integer execute(Integer index) throws NoSuchMethodException,InterruptedException;


    public ILoopHandler newHandler(Integer count, long timer, LocalDateTime dateTime, String js,Integer jumpCount,long time){
        this.time = time;
        return newHandler(count,timer,dateTime,js,jumpCount);
    };

    abstract public ILoopHandler newHandler(Integer count, long timer, LocalDateTime dateTime, String js,Integer jumpCount);

}
